home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 117 / PC Guia 117.iso / Software / Utils / Software2 / Product18 / Setup.exe / wysiwordpress.php < prev   
PHP Script  |  2005-04-05  |  989b  |  27 lines

  1. <?
  2. /*
  3. Plugin Name: WYSI-Wordpress
  4. Plugin URI: http://mudbomb.com/
  5. Description: This plugin adds a WYSIWYG editor to the advanced editing screen of Wordpress, allowing you to edit posts as you would in any word processor application. It also includes an image uploader and manager.
  6. Version: 2.0
  7. Author: MudBomb.com
  8. Author URI: http://mudbomb.com/
  9. */
  10. ob_start('nuke_the_quicktags');
  11.  
  12. function nuke_the_quicktags( $lookmanoqtags ) {
  13.     $lookmanoqtags = preg_replace('|<div id="quicktags">.*?</div>|s', '', $lookmanoqtags);
  14.     return $lookmanoqtags;
  15. }
  16.  
  17.  
  18. function wysiwordpress()
  19. {
  20. ?><script language="javascript" type="text/javascript" src="../wp-content/plugins/Wysi-Wordpress/tiny_mce.js"></script>
  21. <script language="javascript" type="text/javascript" src="../wp-content/plugins/Wysi-Wordpress/wordpress.js"></script>
  22. <?
  23. }
  24. add_action('edit_form_advanced','wysiwordpress');
  25. add_action('edit_page_form','wysiwordpress');
  26. add_action('simple_edit_form','wysiwordpress');
  27. ?>